<?php
require PLATFORM_T3_PATH . DS . 'autoload.php'; // 加载composer外部依赖

$platformLoader = new \Phalcon\Loader();
$platformLoader->registerNamespaces([
    ROOT_NAMESPACE . '\Controllers' => PLATFORM_CONTROLLER_PATH,
    ROOT_NAMESPACE . '\Models' => PLATFORM_MODEL_PATH,
    ROOT_NAMESPACE . '\Library' => PLATFORM_LIB_PATH,
    ROOT_NAMESPACE . '\Plugins' => PLATFORM_PLUGINS_PATH,
    ROOT_NAMESPACE . '\Services' => PLATFORM_SERVICE_PATH,
    ROOT_NAMESPACE . '\Listeners' => PLATFORM_LISTENER_PATH,
]);
$platformLoader->register();
